﻿//---------------------------------------------------------------------------------
// Copyright 2011 Microsoft Corporation
// Licensed under the Microsoft Public License (MS-PL) (the "License"); 
// You may not use this file except in compliance with the License. 
// You may obtain a copy of the License at http://www.opensource.org/licenses/ms-pl.html
// THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR 
// CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, 
// INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR 
// CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 
// MERCHANTABLITY OR NON-INFRINGEMENT. 
// See the Microsoft Public License (MS-PL) for the specific language governing 
// permissions and limitations under the License.
//---------------------------------------------------------------------------------
using System;
using System.Net;

namespace Microsoft.Telco.WindowsLive
{

internal class WebRequestData
{

    // Methods
    internal WebRequestData(WebRequest webRequest, LiveDataContext dataContext, bool isRootDocument, Action<Exception> callback)
    {
        this.WebRequest = webRequest;
        this.DataContext = dataContext;
        this.IsRootDocument = isRootDocument;
        this.Callback = callback;
    }

    // Properties
    public Action<Exception> Callback { get; set; }
    public LiveDataContext DataContext { get; set; }
    public bool IsRootDocument { get; set; }
    public WebRequest WebRequest { get; set; }

}

 
}